<?php

/**
 * LogoutController
 *
 * @author
 * @version
 */
include_once '../application/modules/admin/controllers/SuperControllerAdmin.php';

class Admin_LogoutController extends Admin_SuperController {

    public function indexAction() {
        
        Zend_Layout::getMvcInstance()->disableLayout();
        $this->_helper->viewRenderer->setNoRender(TRUE);
        $admin_account = new Zend_Session_Namespace('admin_account');

        $host_s = str_replace('www.', '', $this->getRequest()->getHttpHost());

        setcookie('_lgn_', '', 0, '/', $host_s);
        setcookie('_pwd_', '', 0, '/', $host_s);
        $admin_account->unsetAll();
        $this->_redirect("/admin/login");
    }

}